#!/usr/bin/python
# -*- coding: utf-8 -*-
import hashlib


def encryptMD5(msg):
    # 创建md5对象
    md = hashlib.md5()
    md.update(msg)
    return md.hexdigest()